Scheduler for WPF | ComponentOne
C1.Schedule Namespace / BaseStorage<T,TMappingCollection> Class
The type of the objects which will be stored in the storage. It should be derived from the BasePersistableObject class and have the default parameter-less constructor.
The type of the collection which will be used for mapping. It should be derived from the MappingCollectionBase<T> class and have the default parameter-less constructor.
Members

In This Topic
    BaseStorage<T,TMappingCollection> Class
    In This Topic
    The BaseStorage<T,TMappingCollection> is the base generic component for all storages in C1Schedule object model. Represents a storage of objects derived from BasePersistableObject. This component implements methods of operations over the collections of objects. It allows the collection to be populated programmatically or automatically by retrieving data from the data source which is specified by the DataSource and DataMember properties. It allows mapping of data source fields to the object properties.
    Object Model
    BaseStorage<T,TMappingCollection> Class
    Syntax
    'Declaration
     
    
    Public Class BaseStorage
        (Of T As {New, BasePersistableObject},
         TMappingCollection As {New, MappingCollectionBase(Of T)}) 
       Inherits C1BindingSource
    public class BaseStorage<T,TMappingCollection> : C1BindingSource 
    where T: new(), BasePersistableObject
    where TMappingCollection: new(), MappingCollectionBase<T>
    Type Parameters
    T
    The type of the objects which will be stored in the storage. It should be derived from the BasePersistableObject class and have the default parameter-less constructor.
    TMappingCollection
    The type of the collection which will be used for mapping. It should be derived from the MappingCollectionBase<T> class and have the default parameter-less constructor.
    Inheritance Hierarchy

    System.Object
       System.MarshalByRefObject
          System.ComponentModel.Component
             C1.Schedule.C1BindingSource
                C1.Schedule.BaseStorage<T,TMappingCollection>
                   C1.Schedule.AppointmentStorage
                   C1.Schedule.CategoryStorage
                   C1.Schedule.ContactStorage
                   C1.Schedule.LabelStorage
                   C1.Schedule.ResourceStorage
                   C1.Schedule.StatusStorage

    See Also